#include "pollServer.hpp"
#include <memory>

void Usage()
{
    std::cout << "\n./Usage ServerPort\n" << std::endl;
}

int main(int argc, const char** argv)
{
    if(argc != 2)
    {
        Usage();
        exit(1);
    }

    std::unique_ptr<PollServer> pSrv(new PollServer(atoi(argv[1])));
    pSrv->start();

    return 0;
}